<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Working in the Model Tree</title>
<link href="../Styles/style.css" rel="stylesheet" type="text/css" />
</head>

<body>

    <h2>Deleting Elements from the Model Tree</h2>
    
    <p>To delete one or more elements in the Model Tree select them  and choose "Delete" from the main "Edit" menu or from the main toolbar.</p>
    
    <p>Note that if an element that you wish to delete appears in  one or more Views you will be warned that it is referenced in those Views. <strong>If you then delete the element from the tree you will also delete it from any Views where it is referenced.</strong></p>
    <img src="../Images/delete_warning.png"/>
    <p class="caption">Warning about deleting an element</p>
    
    <br/>
    
    <h2>Renaming an Element in the Model Tree</h2>
    <p>To rename an element or  relationship in the Model Tree choose "Rename" from the main Edit menu or from the right-click context menu. You can also rename it in the <a href="properties_element.html">Properties Window</a>.</p>
    
    <br/>
    
    <h2>Duplicating an Element or View in the Model Tree</h2>
    
    <p>To duplicate Elements or Views in the Model Tree select "Duplicate" from the main "Edit" menu or from the right-click context menu. Note that Duplicate Views contain references to the original elements copied.</p>
    
    <br/>
    
    <h2>Editing Properties for an Element in the Model Tree</h2>
    <p>To edit the Properties for a selected element or  relationship in the Model Tree, select the tree node and open the Properties Window  either by double-clicking the tree node or from the main "Window" menu or main toolbar.</p>
    <p>Each element in the Model Tree has different properties that  can be set or viewed in the Properties Window. For more information see the  section, <a href="properties_window.html">The Properties Window</a>.</p>
    <p>Note - some properties can only be edited when the element  is selected in a View (for example, the fill colour, font or line width).</p>
    
    <br/>
    
    <h2>Elements in the Model Tree and Views</h2>
    
    <p>Elements in the Model Tree  can be added to any number of diagram Views in the model by dragging them onto  the View's canvas (see the section, "Views"). When an element has been added or  used in a View the font used in the Model Tree for that element is normal. However, if the element only exists in the Model Tree and is not used in any View it is shown with an <em>italic</em> font:</p>
    <img src="../Images/model-tree-italic.png"/>
    <p class="caption">Italic font shows elements not used in Views</p>
    <p>This makes it convenient to  see those elements that may have become redundant and can be deleted.</p>
    <br/>
    
    <h2>Synchronising Selections in the Model Tree and a View</h2>
    
    <p>When selecting elements in the Model Tree and in diagram  Views it is sometimes useful to synchronise the selection between the elements in  both windows. Pressing the "Link to View" button in the Model Tree window enables or disables synchronising selected elements between the Model Tree and a diagram:</p>
    <img src="../Images/model-tree-sync.png"/>
    <p class="caption">The "Link to View" button</p>
    <p>This button is a toggle and can be turned off or on.</p>
    <p>Synchronised selection is possible on more than one selected element.</p>
    <p>Note that synchronised selection is only possible if a relevant View is open. Selecting an element in the Model Tree will not synchronise a selection in a View if that View does not contain that particular element or elements.</p>
    
    <p>&nbsp;</p>
    
</body>
</html>
